import request from '@/utils/request'

const api_name = '/eduservice/question'

export default {
  // 根据课程ID获取题目列表
  getQuestionListByCourseId(courseId) {
    return request({
      url: `${api_name}/pageList/1/1000`,
      method: 'get',
      params: { courseId: courseId }
    })
  },

  // 根据章节ID获取题目列表
  getQuestionListByChapterId(chapterId) {
    return request({
      url: `${api_name}/pageList/1/1000`,
      method: 'get',
      params: { chapterId: chapterId }
    })
  }
}